﻿using Sunny.Service;

namespace Sunny.Model.RedisCache
{
    public class CommonKeyPrefix : AbstractRedisKeyPrefix
    {
        public CommonKeyPrefix(string key) : base(key)
        {
        }

        public CommonKeyPrefix(string keyPrefix, int expire) : base(keyPrefix, expire)
        {
        }

        /// <summary>
        /// 后台登录验证码key，过期时间3分钟
        /// </summary>
        public static readonly CommonKeyPrefix CaptchaCode = new CommonKeyPrefix("captcha_code", 60 * 3);
    }
}